<?php
if($_SESSION['sid']==55) {exit("<script>window.location='dlogin.html'</script>");}
use pft\Member\MemberAccount;
include("common/header.html");
include("common/left.html");
include('/var/www/html/new/d/common/access_auth.php');
include 'common/autoload.php';
$mem = new MemberAccount($GLOBALS['le']);
$soap = SoapInit::GetSoapInside();
$mid = $_SESSION['sid'];
if(!$mid) {
    header('location:dlogin.html');
    exit;
}
$data = $mem->GetOne($mid);
$data['money'] = (int)$mem->ShowBalance($mid, $soap)/100;
$data['access'] = $access;
$page_title = "账户管理 - ";
$tplFile = TPLPATH .'accountmanage.tpl';
$tplEngine = new IdiotTplEngine($tplFile);
//$csrf_token = genCsrfToken();
//$data = array('csrf_token'=>$csrf_token,'web_title'=>$GLOBALS['web_title']);
$tplEngine->SetData($data);

echo $tplEngine->Render();
?>

    <link rel="stylesheet" type="text/css" href="http://www.12301.cc/css/common/reset_style.css"/>
    <link rel="stylesheet" href="http://www.12301.cc/css/new/accountmanage.css"/>
  
<?include("common/footer.html");?>